PrintLineProperties

data class PrintLineProperties(val fontSize: Int? = null, val typeface: String? = null, val textAlignment: String? = null, val isBold: Boolean? = null, val isItalic: Boolean? = null, val isUnderline: Boolean? = null) : Parcelable

A data class that holds the info to the print line properties, if null, then default properties will be taken depending on device.

Constructors

Link copied to clipboard
constructor(fontSize: Int? = null, typeface: String? = null, textAlignment: String? = null, isBold: Boolean? = null, isItalic: Boolean? = null, isUnderline: Boolean? = null)

Properties

Link copied to clipboard
val fontSize: Int? = null

FontSize is following Microsoft Words font size rule.

Link copied to clipboard
val isBold: Boolean? = null

Boolean to set the data to bold

Link copied to clipboard
val isItalic: Boolean? = null

Boolean to set the data to Italic

Link copied to clipboard
val isUnderline: Boolean? = null

Boolean to underline the data

Link copied to clipboard
val textAlignment: String? = null

Aligning the text on the line @sample left, center, right

Link copied to clipboard
val typeface: String? = null

Refers to the specific design or style of a font that is used for displaying text on the screen @sample default, default_bold, monospace, sans_serif, serif @see https://developer.android.com/reference/android/graphics/Typeface

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)